package com.huluobo.lib_http

import retrofit2.Retrofit

/**
 *  Created by LC on 2025/6/12.
 */
object NetworkFactory {
    lateinit var retrofit: Retrofit

    fun factory(type: HttpType): Retrofit {
        retrofit = when (type) {
            HttpType.NONE -> {
                NoneRetrofitImpl().createRetrofit()
            }

            HttpType.TOKEN -> {
                TokenRetrofitImpl().createRetrofit()
            }
        }
        return retrofit
    }
}